<?php


header("Content-type:text/html;charset=utf-8");
    $conn = mysql_connect("localhost","root","root");

    mysql_select_db("2012");

    $userPhone = $_POST["userPhone"];
    $userPwd= $_POST["userPwd"];

    
    $result= mysql_query("insert into user values('$userPhone','$userPwd')",$conn);
    if($result){
        echo 1;
    }else{
        echo 0;
    }

    mysql_close($conn);
?>
